#!/bin/bash
# date: 2024/06/27
# https://min.io/download?license=agpl&platform=linux

# cd /usr/local/bin/
# wget https://dl.min.io/server/minio/release/linux-amd64/minio
# wget https://dl.min.io/client/mc/release/linux-amd64/mc
# chmod +x /usr/local/bin/minio /usr/local/bin/mc


export MINIO_ROOT_USER=admin
export MINIO_ROOT_PASSWORD=admin@321

mkdir /tmp/minio &> /dev/null

nohup minio server /tmp/minio --console-address ":9001" &> /tmp/minio.out &

# mc alias set myminio/ http://127.0.0.1:9000 admin admin@321
